<div class="module" id="address_list">
 <a href="address_add_page.html">
  添加
 </a>
 <ul>
  <li>
   Title Top
  </li><?php if (is_array($addresses) > 0): $ulNum=0; foreach ($addresses as $key=>$address):?>

<?php if ($address->name==0):?><li foreach="$address->name as $n">
<?php echo htmlspecialchars($address->name);?>
</li>
<?php endif;?>
<li>
   <?php echo addslashes($address->email);?>
  </li>
<li>
<a href="address_edit_page.html?id=<?php echo $address->id + 1?>">
    修改
   </a>
<a href="address_delete_result_page.html?id=<?php echo $address->id+2?>">
    删除
   </a>
</li>

<?php $ulNum++; endforeach;?><?php endif;?><li>
   Bottom
  </li>
 </ul>
 <div>
  <form id="address_add_form" action="http://localhost/test/test.php" method="post">
   <div id="address_name_field" class="field">
    <span class="label">
     Name:
    </span>
    <span class="compoment">
     <input type="text" name="address_name" value="" />
    </span>
    <span class="tip">
     Please input your name.
    </span>
    <span class="errmsg">
     Name is required!
    </span>
   </div>
   <div id="address_name2_field" class="field">
    <span class="label">
     Name:
    </span>
    <span class="compoment">
     <select name="address_name2" size="4" multiple="multiple">
      <option value="1">
       1
      </option>
      <option value="2">
       2
      </option>
     </select>
    </span>
    <span class="tip">
     Please input your name.
    </span>
    <span class="errmsg">
     Name is required!
    </span>
   </div>
   <div id="address_email_field" class="field">
    <span class="label">
     Email:
    </span>
    <span class="compoment">
     <input name="address_email" type="checkbox" value="1" <?php echo htmlspecialchars(($address->name->w->e2)?123:456);?> />
     <input name="address_email" type="checkbox" value="2" <?php echo addslashes(($address->na->me->we2)?564:789);?> />
     <input name="address_email" type="checkbox" value="3" <?php echo ($address->name->we2)?888:999?> />
     <input name="address_email" type="checkbox" value="4" />
     <input name="address_email" type="checkbox" value="5" />
    </span>
    <span class="tip">
     Please input your email.
    </span>
    <span class="errmsg">
     Email is required!
    </span>
   </div>
   <div id="address_email2_field" class="field">
    <span class="label">
     Email:
    </span>
    <span class="compoment">
     <input name="address_email2" type="file" />
    </span>
    <span class="tip">
     Please input your email.
    </span>
    <span class="errmsg">
     Email is required!
    </span>
   </div>
   <div id="address_content_field" class="field">
    <span class="label">
     Content:
    </span>
    <span class="compoment">
     <textarea name="address_content"><?php echo htmlspecialchars($address->name);?></textarea>
    </span>
    <span class="tip">
     Please input your Content.
    </span>
    <span class="errmsg">
     Content is required!
    </span>
   </div>
   <div>
    <input type="submit" value="修改" />
   </div>
  </form>
 </div>
</div>
